import axios from 'axios'

let context = '/settingservice'

/***
 * 新增通知
 */
export function addNoticeMessage(data: any) {
  return axios.post(`${context}/notice/message`, data)
}

/***
 * 修改通知
 */
export function updateNoticeMessage(data: any) {
  return axios.put(`${context}/notice/message`, data)
}

/***
 * 获取通知列表
 */
export function getNoticeMessagePagination(data: any) {
  return axios.get(`${context}/notice/message/pagination`, {
    params: data,
  })
}

/***
 * 获取通知详情
 */
export function getNoticeMessageDetail(data: any) {
  return axios.get(`${context}/notice/message`, {
    params: data,
  })
}

/***
 * 删除通知
 */
export function batchRemoveNoticeMessage(data: any) {
  return axios.post(`${context}/notice/message/batchRemove`, data)
}
